#include "Charactor.h"

#include <cstdlib>

void Charactor::fight(){
	this->weaponBehavior->fight();
}

void Charactor::setWeapon(WeaponBehavior *wb){
	if (this->weaponBehavior != NULL) {
		delete this->weaponBehavior;
	}
	this->weaponBehavior = wb;
}